﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200024B RID: 587
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueLayerAccountInfoNotify : IMessage<ChessRogueLayerAccountInfoNotify>, IMessage, IEquatable<ChessRogueLayerAccountInfoNotify>, IDeepCloneable<ChessRogueLayerAccountInfoNotify>, IBufferMessage
	{
		// Token: 0x170007C8 RID: 1992
		// (get) Token: 0x06001A8F RID: 6799 RVA: 0x0004CA83 File Offset: 0x0004AC83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueLayerAccountInfoNotify> Parser
		{
			get
			{
				return ChessRogueLayerAccountInfoNotify._parser;
			}
		}

		// Token: 0x170007C9 RID: 1993
		// (get) Token: 0x06001A90 RID: 6800 RVA: 0x0004CA8A File Offset: 0x0004AC8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueLayerAccountInfoNotifyReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170007CA RID: 1994
		// (get) Token: 0x06001A91 RID: 6801 RVA: 0x0004CA9C File Offset: 0x0004AC9C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueLayerAccountInfoNotify.Descriptor;
			}
		}

		// Token: 0x06001A92 RID: 6802 RVA: 0x0004CAA3 File Offset: 0x0004ACA3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerAccountInfoNotify()
		{
		}

		// Token: 0x06001A93 RID: 6803 RVA: 0x0004CAB8 File Offset: 0x0004ACB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerAccountInfoNotify(ChessRogueLayerAccountInfoNotify other) : this()
		{
			this.layerId_ = other.layerId_;
			this.difficultyLevel_ = other.difficultyLevel_;
			this.lHPDBAMHBKB_ = other.lHPDBAMHBKB_.Clone();
			this.levelInfo_ = ((other.levelInfo_ != null) ? other.levelInfo_.Clone() : null);
			this.finishInfo_ = ((other.finishInfo_ != null) ? other.finishInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001A94 RID: 6804 RVA: 0x0004CB3D File Offset: 0x0004AD3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLayerAccountInfoNotify Clone()
		{
			return new ChessRogueLayerAccountInfoNotify(this);
		}

		// Token: 0x170007CB RID: 1995
		// (get) Token: 0x06001A95 RID: 6805 RVA: 0x0004CB45 File Offset: 0x0004AD45
		// (set) Token: 0x06001A96 RID: 6806 RVA: 0x0004CB4D File Offset: 0x0004AD4D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LayerId
		{
			get
			{
				return this.layerId_;
			}
			set
			{
				this.layerId_ = value;
			}
		}

		// Token: 0x170007CC RID: 1996
		// (get) Token: 0x06001A97 RID: 6807 RVA: 0x0004CB56 File Offset: 0x0004AD56
		// (set) Token: 0x06001A98 RID: 6808 RVA: 0x0004CB5E File Offset: 0x0004AD5E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DifficultyLevel
		{
			get
			{
				return this.difficultyLevel_;
			}
			set
			{
				this.difficultyLevel_ = value;
			}
		}

		// Token: 0x170007CD RID: 1997
		// (get) Token: 0x06001A99 RID: 6809 RVA: 0x0004CB67 File Offset: 0x0004AD67
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> LHPDBAMHBKB
		{
			get
			{
				return this.lHPDBAMHBKB_;
			}
		}

		// Token: 0x170007CE RID: 1998
		// (get) Token: 0x06001A9A RID: 6810 RVA: 0x0004CB6F File Offset: 0x0004AD6F
		// (set) Token: 0x06001A9B RID: 6811 RVA: 0x0004CB77 File Offset: 0x0004AD77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueLevelInfo LevelInfo
		{
			get
			{
				return this.levelInfo_;
			}
			set
			{
				this.levelInfo_ = value;
			}
		}

		// Token: 0x170007CF RID: 1999
		// (get) Token: 0x06001A9C RID: 6812 RVA: 0x0004CB80 File Offset: 0x0004AD80
		// (set) Token: 0x06001A9D RID: 6813 RVA: 0x0004CB88 File Offset: 0x0004AD88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueFinishInfo FinishInfo
		{
			get
			{
				return this.finishInfo_;
			}
			set
			{
				this.finishInfo_ = value;
			}
		}

		// Token: 0x06001A9E RID: 6814 RVA: 0x0004CB91 File Offset: 0x0004AD91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueLayerAccountInfoNotify);
		}

		// Token: 0x06001A9F RID: 6815 RVA: 0x0004CBA0 File Offset: 0x0004ADA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueLayerAccountInfoNotify other)
		{
			return other != null && (other == this || (this.LayerId == other.LayerId && this.DifficultyLevel == other.DifficultyLevel && this.lHPDBAMHBKB_.Equals(other.lHPDBAMHBKB_) && object.Equals(this.LevelInfo, other.LevelInfo) && object.Equals(this.FinishInfo, other.FinishInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001AA0 RID: 6816 RVA: 0x0004CC28 File Offset: 0x0004AE28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.LayerId != 0U)
			{
				num ^= this.LayerId.GetHashCode();
			}
			if (this.DifficultyLevel != 0U)
			{
				num ^= this.DifficultyLevel.GetHashCode();
			}
			num ^= this.lHPDBAMHBKB_.GetHashCode();
			if (this.levelInfo_ != null)
			{
				num ^= this.LevelInfo.GetHashCode();
			}
			if (this.finishInfo_ != null)
			{
				num ^= this.FinishInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001AA1 RID: 6817 RVA: 0x0004CCBA File Offset: 0x0004AEBA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001AA2 RID: 6818 RVA: 0x0004CCC2 File Offset: 0x0004AEC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001AA3 RID: 6819 RVA: 0x0004CCCC File Offset: 0x0004AECC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.LayerId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.LayerId);
			}
			if (this.levelInfo_ != null)
			{
				output.WriteRawTag(34);
				output.WriteMessage(this.LevelInfo);
			}
			if (this.finishInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.FinishInfo);
			}
			if (this.DifficultyLevel != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.DifficultyLevel);
			}
			this.lHPDBAMHBKB_.WriteTo(ref output, ChessRogueLayerAccountInfoNotify._repeated_lHPDBAMHBKB_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001AA4 RID: 6820 RVA: 0x0004CD70 File Offset: 0x0004AF70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.LayerId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LayerId);
			}
			if (this.DifficultyLevel != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DifficultyLevel);
			}
			num += this.lHPDBAMHBKB_.CalculateSize(ChessRogueLayerAccountInfoNotify._repeated_lHPDBAMHBKB_codec);
			if (this.levelInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.LevelInfo);
			}
			if (this.finishInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.FinishInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001AA5 RID: 6821 RVA: 0x0004CE0C File Offset: 0x0004B00C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueLayerAccountInfoNotify other)
		{
			if (other == null)
			{
				return;
			}
			if (other.LayerId != 0U)
			{
				this.LayerId = other.LayerId;
			}
			if (other.DifficultyLevel != 0U)
			{
				this.DifficultyLevel = other.DifficultyLevel;
			}
			this.lHPDBAMHBKB_.Add(other.lHPDBAMHBKB_);
			if (other.levelInfo_ != null)
			{
				if (this.levelInfo_ == null)
				{
					this.LevelInfo = new ChessRogueLevelInfo();
				}
				this.LevelInfo.MergeFrom(other.LevelInfo);
			}
			if (other.finishInfo_ != null)
			{
				if (this.finishInfo_ == null)
				{
					this.FinishInfo = new ChessRogueFinishInfo();
				}
				this.FinishInfo.MergeFrom(other.FinishInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001AA6 RID: 6822 RVA: 0x0004CEC5 File Offset: 0x0004B0C5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001AA7 RID: 6823 RVA: 0x0004CED0 File Offset: 0x0004B0D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 16U)
					{
						this.LayerId = input.ReadUInt32();
						continue;
					}
					if (num == 34U)
					{
						if (this.levelInfo_ == null)
						{
							this.LevelInfo = new ChessRogueLevelInfo();
						}
						input.ReadMessage(this.LevelInfo);
						continue;
					}
					if (num == 50U)
					{
						if (this.finishInfo_ == null)
						{
							this.FinishInfo = new ChessRogueFinishInfo();
						}
						input.ReadMessage(this.FinishInfo);
						continue;
					}
				}
				else
				{
					if (num == 64U)
					{
						this.DifficultyLevel = input.ReadUInt32();
						continue;
					}
					if (num == 104U || num == 106U)
					{
						this.lHPDBAMHBKB_.AddEntriesFrom(ref input, ChessRogueLayerAccountInfoNotify._repeated_lHPDBAMHBKB_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000B1B RID: 2843
		private static readonly MessageParser<ChessRogueLayerAccountInfoNotify> _parser = new MessageParser<ChessRogueLayerAccountInfoNotify>(() => new ChessRogueLayerAccountInfoNotify());

		// Token: 0x04000B1C RID: 2844
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000B1D RID: 2845
		public const int LayerIdFieldNumber = 2;

		// Token: 0x04000B1E RID: 2846
		private uint layerId_;

		// Token: 0x04000B1F RID: 2847
		public const int DifficultyLevelFieldNumber = 8;

		// Token: 0x04000B20 RID: 2848
		private uint difficultyLevel_;

		// Token: 0x04000B21 RID: 2849
		public const int LHPDBAMHBKBFieldNumber = 13;

		// Token: 0x04000B22 RID: 2850
		private static readonly FieldCodec<uint> _repeated_lHPDBAMHBKB_codec = FieldCodec.ForUInt32(106U);

		// Token: 0x04000B23 RID: 2851
		private readonly RepeatedField<uint> lHPDBAMHBKB_ = new RepeatedField<uint>();

		// Token: 0x04000B24 RID: 2852
		public const int LevelInfoFieldNumber = 4;

		// Token: 0x04000B25 RID: 2853
		private ChessRogueLevelInfo levelInfo_;

		// Token: 0x04000B26 RID: 2854
		public const int FinishInfoFieldNumber = 6;

		// Token: 0x04000B27 RID: 2855
		private ChessRogueFinishInfo finishInfo_;
	}
}
